﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="InitSite.aspx.vb" Inherits="Web.InitSite" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>网站设置</title>
    <link type="text/css" rel="stylesheet" href="css/t.css" media="all" />
    <link type="text/css" rel="stylesheet" href="css/css3.css" media="all" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="MainScriptMan" runat="server" EnableScriptGlobalization="True"
            EnableScriptLocalization="True">
        </asp:ScriptManager>
        <cc1:TabContainer ID="mTab" runat="server">     
        
        <cc1:TabPanel runat="server" ID="BaseTab" HeaderText="基本参数">
            <ContentTemplate>
            <asp:UpdatePanel runat="server" ID="dgUppal4">
            <ContentTemplate>
                <table border="1" style="width: 100%;border-collapse:collapse;background-color:#F2F2F2;" cellpadding="2" cellspacing="2" align="center">
	                <tr>
	                <td class="tab_l">
                        投票选项 ：</td>
	                <td class="tab_l2"><asp:RadioButtonList ID="sitePost" runat="server" RepeatColumns="2">
                                    <asp:ListItem Value="1">单选</asp:ListItem>
                                    <asp:ListItem Selected="True" Value="2">多选</asp:ListItem>
                                </asp:RadioButtonList></td></tr>
	                <tr>
	                <td class="tab_l">
                        网站制作 ：</td>
	                <td class="tab_l2">
                                <asp:TextBox ID="DevName" runat="server" Columns="30"></asp:TextBox></td></tr>
                    <tr>
	                <td class="tab_l">
                        网站名称 ：</td>
	                <td class="tab_l2">
                                <asp:TextBox ID="SiteName" runat="server" Columns="30"></asp:TextBox></td></tr>                                
                </table>


                                  <div  class="center">
                <asp:Button ID="saveBtn" runat="server" Text="保存" CssClass="btn" OnClick="saveBtn_Click" /></div>
                        </ContentTemplate>
                        </asp:UpdatePanel>
            </ContentTemplate>
        </cc1:TabPanel>   
        
        <cc1:TabPanel runat="server" ID="MenuTab" HeaderText="菜单设置">
            <ContentTemplate>
            <table width="98%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" class="f12px" style="height: 21px"><table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
            <tr>
            <td width="10%"></td>
                <td class="f12px" width="30%" align="left"valign="top">
                    <asp:UpdatePanel ID="dgUpPal1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:TreeView ID="artre" EnableClientScript="false"  runat="server" ShowLines="True" Height="100%" Width="80%" OnSelectedNodeChanged="artre_SelectedNodeChanged" ExpandDepth="0">
                    </asp:TreeView>
                        </ContentTemplate>
                        <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="addBtn" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
                <td width="60%" valign="top" align="left">
                <asp:UpdatePanel ID="dgUpPal2" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table border="1" style="width: 80%" class="f12px">
                    <tr>
                            <td align="right">
                                编号:</td>
                            <td align="left">
                                <asp:TextBox ID="ab01" runat="server" Columns="15" MaxLength="30" Enabled="False"></asp:TextBox></td>
                        </tr>
                        
                        <tr>
                            <td align="right">
                                类型:</td>
                            <td align="left">
                                <asp:DropDownList ID="TypeDrop" runat="server" AutoPostBack="True" OnSelectedIndexChanged="TypeDrop_SelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:DropDownList ID="oTypeDrop" runat="server" AutoPostBack="True" OnSelectedIndexChanged="oTypeDrop_SelectedIndexChanged"
                                    Visible="False">
                                </asp:DropDownList></td>
                        </tr>
                        
                        <tr>
                            <td align="right" style="width: 2%">
                                名称:</td>
                            <td align="left"  style="width: 10%">
                                <asp:TextBox ID="ab03" runat="server" Columns="20"></asp:TextBox></td>
                        </tr>
                        
                        <tr>
                            <td align="right" style="width: 2%">
                                前台链接:</td>
                            <td align="left" style="width: 10%"><asp:TextBox ID="ab04" runat="server" Columns="35"></asp:TextBox></td>
                        </tr>
                        
                        <tr>
                            <td align="right" style="width: 2%">
                                后台链接:</td>
                            <td align="left" style="width: 10%"><asp:TextBox ID="ab05" runat="server" Columns="35"></asp:TextBox></td>
                        </tr>
                        
                        <tr>
                            <td align="right" style="width: 2%">
                                顺序:</td>
                            <td align="left" style="width: 10%"><asp:TextBox ID="ab13" runat="server" Columns="3" Text="9999"></asp:TextBox></td>
                        </tr>

                        
                        <tr>
                            <td align="right" style="width: 2%">
                                基本属性:</td>
                            <td align="left" style="width: 10%">
                                <asp:CheckBoxList ID="abchklst" runat="server" RepeatColumns="4" RepeatDirection="Horizontal">
                                    <asp:ListItem Selected="True" Value="ab07">前台</asp:ListItem>
                                    <asp:ListItem Selected="True" Value="ab08">后台</asp:ListItem>
                                    <asp:ListItem Selected="True" Value="ab09">系统</asp:ListItem>
                                    <asp:ListItem Value="ab10">审核</asp:ListItem>
                                </asp:CheckBoxList></td>
                        </tr>
                        <asp:Panel runat="server" ID="extPal" Visible="false">
                        <tr>
                            <td align="right" style="width: 2%">
                                扩展属性:</td>
                            <td align="left" style="width: 10%">
                                <asp:CheckBoxList ID="extchk" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="extchk__SelectedIndexChanged">
                                </asp:CheckBoxList></td>
                        </tr>
                        </asp:Panel>
                        
                        <tr>
                            <td align="right" style="width: 2%">
                                类别:</td>
                            <td align="left" style="width: 10%">
                                <asp:RadioButtonList ID="opradio" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
                                    <asp:ListItem Selected="True" Value="1">根类</asp:ListItem>
                                    <asp:ListItem Value="0">子类</asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        
                        <tr>
                        <td align="center" colspan="2">
                                <asp:Button ID="addbtn" runat="server" Text="添加" OnClick="addbtn_Click" CssClass="btn" />
                                <asp:Button ID="edtbtn" runat="server" Text="修改" OnClick="edtbtn_Click" CssClass="btn" />
                                <asp:Button ID="delBtn" runat="server" Text="删除" OnClick="delBtn_Click" CssClass="btn" OnClientClick="if(confirm('是否确认删除所选类别?')!=true) return false;"/></td>
                        </tr>
                    </table>
                     </ContentTemplate>
                                </asp:UpdatePanel>
                </td>
            </tr>
        </table>   
</td>
  </tr>
  <tr><td height="60"></td>
  </tr>
</table>
            </ContentTemplate>        
        </cc1:TabPanel>
        
        <cc1:TabPanel runat="server" ID="InitTab" HeaderText="网站初使化">
        <ContentTemplate>
                    <asp:UpdatePanel runat="server" ID="DgUpPal5">
            <ContentTemplate>
                <table border="1" style="width: 100%;border-collapse:collapse;background-color:#F2F2F2;" cellpadding="2" cellspacing="2" align="center">
	                <tr>
	                    <td class="tab_l">清空菜单 ：</td>
	                    <td class="tab_l2"><asp:CheckBox runat="server" ID="CMnuChk" Text="是" Checked="false" /></td>
	                </tr>
	                <tr>
	                    <td class="tab_l">清空内容 ：</td>
	                    <td class="tab_l2"><asp:CheckBox runat="server" ID="CConChk" Text="是" Checked="false" /></td>
	                </tr>
	                <tr>
	                    <td class="tab_l">清空留言 ：</td>
	                    <td class="tab_l2"><asp:CheckBox runat="server" ID="CBbsChk" Text="是" Checked="false" /></td>
	                </tr>
	                <tr>
	                    <td class="tab_l">清空计数器 ：</td>
	                    <td class="tab_l2"><asp:CheckBox runat="server" ID="CCountChk" Text="是" Checked="false" /></td>
	                </tr>
	                <tr>
	                    <td class="tab_l">清空友情链接 ：</td>
	                    <td class="tab_l2"><asp:CheckBox runat="server" ID="CLinkChk" Text="是" Checked="false" /></td>
	                </tr>
                </table>
                                  <div  class="center">
                <asp:Button ID="OKBtn" runat="server" OnClick="OKBtn_Click" Text="确定" CssClass="btn" OnClientClick="if(confirm('确认要初使化网站?')!=true) return false;" /></div>
                        </ContentTemplate>
                        </asp:UpdatePanel>
        </ContentTemplate>
        </cc1:TabPanel>
        </cc1:TabContainer>
    </div>
    </form>
</body>
</html>
